﻿<?php
include_once("../../includes/metodos.php");
include_once("action.php");

checkUser();
connectSql();
isAdmin();

if(!empty($_POST['cmd']) && $_POST['cmd']=='insert'){
	insert();	
}
?>
<?php include("../cabecalho.php");?>
<link href="../css/estilo2.css" type="text/css" rel="stylesheet">
<div id="conteudo_mult">
   <div style="width:306px; height:auto; margin:0 auto;padding:20px 0 0 0;">
	<form action="new.php" method="post"><br>
		<label id="txt_multimidia_new">Titulo:</label>
		<input id="input_mult_titulo" type="text" name="titulo"/><br/>
		<label id="txt_multimidia_new">Link:</label>
		<input id="input_mult_titulo2" type="text" name="link"/><br/>
		<label id="status_mult">Status</label><br/>
		<input id="radio_mult1" type="radio" name="status" value="1" checked="checked"><label id="radio_mult3">Ativo</label><br/>
		<input id="radio_mult1" type="radio" name="status" value="2"><label id="radio_mult2">Inativo</label>
		<label id="txt_multimidia_new">Descricao</label>
		<input style="float:right; border: 1px solid #009900;border-radius: 5px; width:218px;" type="text" name="descricao"/><br/>
		<label id="txt_multimidia_new">Assuntos Relacionados</label>
		<input style="float:right;border: 1px solid #009900;border-radius: 5px;" type="text" name="tags"/><br/><br><br>
		<input type="hidden" name="cmd" value="insert"/>
		<input type="hidden" name="id_usuario" value="<?php echo $_SESSION['id'];?>">
		<input id="btn_salva_mult" type="submit" value="Salvar">
	</form>
   </div>
</div>